package com.factory;

public class StudentFactoryTest {
    public static void main(String[] arg) {
        Istudent bad = BadandGoodStudentFactory.getInstance("bad");
        bad.eat(new Student("zhangsan",10));
        Istudent good = BadandGoodStudentFactory.getInstance("good");
        good.eat(new Student("lisi",20));


    }
}
